package com.zerui.manager.accessauthorg.domainservice;

import com.zerui.manager.accessauthorg.AccessAuthOrg;
import com.zerui.manager.accessauthorg.gateway.AccessAuthOrgGateWay;
import com.zerui.manager.web.cmd.AccessAuthOrgBindCmd;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.List;
/**
 * @Author wh
 * @create_time 2023-08-23 11:07
 */
@Component
public class AccessAuthOrgRepository {

	@Resource
	private AccessAuthOrgGateWay accessAuthOrgGateWay;

    public void addBatch(List<AccessAuthOrg> accessAuthOrg) {
        accessAuthOrgGateWay.addBatch(accessAuthOrg);
    }

	public List<Long> deleteBatch(AccessAuthOrgBindCmd accessAuthOrgBindCmd) {
		return accessAuthOrgGateWay.deleteBatch(accessAuthOrgBindCmd);
	}


    public void deleteByOrgId(List<Long> orgId) {
        accessAuthOrgGateWay.deleteByOrgId(orgId);
    }
}
